<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <input v-model="user.name" type="text"/>
</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            user: {
                name: "刘德华",
                age: 50
            }
        },
        watch: {
            user:{
            deep: true,
            handler() {
                console.log("hahaha")
            }
            }
        }

    })
</script>
</body>
</html>